
<h1>Registration page</h1>

<div class="Background">
<div class="Registration Panel">

	<div class="Registration Box">
		<h3>Register</h3>
		<div class="Content Form">
		<?php if( $this->hasFailed() ) : ?>
		<div class="Message">
			<?php foreach( $this->getMessages() as $message ) : ?>
			<p><?php echo _s($message); ?></p>
			<?php endforeach ?>
			<div class="Close">x</div>
		</div>
		<?php endif ?>
		
		<p>Please, fill in those information.</p>
		
		<form method="post" action="Register">
			<input type="hidden" name="Action_Register" value="true" />
			<h4>Personal data</h4>
			<dl>
				<dt>First name:</dt>
				<dd><input type="text" name="first_name" value="<?php echo _s($this->getFirstName()); ?>" /></dd>
				<dt>Last name:</dt>
				<dd><input type="text" name="last_name" value="<?php echo _s($this->getLastName()); ?>" /></dd>
				<dt>Email:</dt>
				<dd><input type="text" name="email" value="<?php echo _s($this->getEmail()); ?>" /></dd>
			</dl>
			<?php echo $this->getTabPane()->process(); ?>
			<h4>Agreement</h4>
			<dl>
				<dt></dt>
				<dd><label><input type="checkbox" <?php if( $this->hasAgreement() ) : ?>checked="checked"<?php endif ?> name="agreement" />
				I have read the <a target="new" href="Agreement">terms of use</a>
				</label>
			</dl>
			<input type="submit" class="Submit" />
		</form>
		</div>
	
		<a onclick="$(this).closest( '.Panel' ).find( 'form' ).submit()" class="Button">Register</a>
		<div style="clear: both"></div>
	</div>
	<p><a href="Authenticate">Already have an account ?</a></p>
</div>
</div>
